package com.springcloudalibaba.apiPay.event;

import org.springframework.context.ApplicationEvent;

import java.util.Map;

/**
 * @描述: 异步修改预支付记录
 * @作者: lixing
 * @日期 2020/4/26 21:18
 */
public class PayCallbackFailEvent extends ApplicationEvent {
    /** 支付客户端类型 */
    private Integer client;
    public Integer getClient() { return client; }
    /** 商品编码 */
    private String productId;
    public String getProductId() { return productId; }
    /** 用户id */
    private long userId;
    public long getUserId() { return userId; }
    /** 支付回调信息 */
    private Map<String, String> resultMap;
    public Map<String, String> getResultMap() { return resultMap; }

    public PayCallbackFailEvent(Object source, Integer client, String productId, long userId, Map<String, String> resultMap) {
        super(source);
        this.client = client;
        this.productId = productId;
        this.resultMap = resultMap;
        this.userId = userId;
    }
}
